package com.cqsw.service.impl;

import com.cqsw.entity.Goods;
import com.cqsw.mapper.goodsMapper;
import com.cqsw.service.goodsService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class goodsServiceImpl implements goodsService {
    @Resource
    private goodsMapper goodsMapper;

    @Override
    public List<Goods> selectAllGoods() {
        return goodsMapper.selectAllGoods();
    }

    @Override
    public List<Goods> selectGoodsType() {
        return goodsMapper.selectGoodsType();
    }

    @Override
    public int addGoods(Goods goods) {
        return goodsMapper.addGoods(goods);
    }

    @Override
    public int updateGoodsMessage(Goods goods) {
        return goodsMapper.updateGoodMessage(goods);
    }
}
